<% form_for [:admin, @contact], :url => path do |form| %>
  <table class="data2 data3" cellspacing="0">

    <tr>
      <th><label><%= Contact.human_attribute_name("business_type") %>:</label></th>
      <td>
        <%= form.text_field :business_type, :maxlength => 50, :size => 40 %><span class="note2">&nbsp;必须</span>
        <%= error_message_on :contact, :business_type %>
      </td>
    </tr>
    <tr>
      <th><%= form.label Contact.human_attribute_name("name") %>：</th>
      <td> <%= form.text_field :name, :maxlength => 50, :size => 40 %><span class="note2">&nbsp;必须</span>
        <%= error_message_on :contact, :name %></td>
    </tr>
    <tr>
      <th><label><%= Contact.human_attribute_name("address") %>：</label></th>
      <td>
        <%= form.text_field :address, :maxlength => 50, :size => 40 %><span class="note2">&nbsp;必须</span>
        <%= error_message_on :contact, :address %>
      </td>
    </tr>
    <tr>
      <th><label><%= Contact.human_attribute_name("tel") %>：</label></th>
      <td>
        <%= form.text_field :tel, :maxlength => 50, :size => 40%><span class="note2">&nbsp;必须</span>
        <%= error_message_on :contact, :tel %>
      </td>
    </tr>
    <tr>
      <th><label><%= Contact.human_attribute_name("email") %>：</label></th>
      <td>
        <%= form.text_field :email, :maxlength => 50, :size => 40 %>
        <%= error_message_on :contact, :email %>
      </td>
    </tr>
    <tr>
      <th><label><%= Contact.human_attribute_name("passport_number") %>：</label></th>
      <td>
        <%= form.text_field :passport_number, :maxlength => 50, :size => 40 %>
        <%= error_message_on :contact, :passport_number %>
      </td>
    </tr>
    <tr>
      <th><label><%= Contact.human_attribute_name("content") %>：</label></th>
      <td>
        <%= form.text_area :content , :size => '40x8' %>
        <%= error_message_on :contact, :content %>
      </td>
    </tr>
    <tr><td  class="center" colspan="2"><%= form.submit t('labels.save'), :class => 'btn_s' %></td></tr>
  </table>
<% end %>
<div class="link-right">
  <%= link_to '返 回', admin_contacts_path, :class=>"link_s"%>
</div>